package com.jerkin.proxy;

/**
 * @version V1.0
 * @ClassName: ProxyTest
 * @Description:
 * @author: huhongzhi
 * @date: 2019/12/1 15:38
 */
public class ProxyTest {

    public static void main(String[] args) {
        ProxyDemoFacade proxyDemoFacade = new ProxyDemoFacadeImpl();
        Object target = ProxyHandler.bind(proxyDemoFacade);
        ProxyDemoFacade proxyDemoFacade1 = (ProxyDemoFacade) target;
        System.out.println("代理实体"+proxyDemoFacade1);
        proxyDemoFacade1.doBusiness();
    }
}
